#include "LogFile.hpp"
#include "../../base/Defind.hpp"

using namespace DBServer::Log;

LogFile::LogFile(int write_buff_size)
: logger_util(LOG_FILE_NAME, write_buff_size)
{}

auto LogFile::append(std::string& msg) -> void
{
    logger_util.append(msg.c_str(), msg.size());
}

auto LogFile::flush() -> void
{
    logger_util.flush();
}

auto LogFile::written_bytes() const -> unsigned long long
{
    return logger_util.written();
}
